FROM tomcat:8.0
ADD bestpl-rest.war /usr/local/tomcat/webapps/
RUN  mkdir -p /usr/local/tomcat/webapps/ROOT && rm -rf /usr/local/tomcat/webapps/ROOT/* && unzip /usr/local/tomcat/webapps/bestpl-rest.war -d /usr/local/tomcat/webapps/ROOT &&  rm -f /usr/local/tomcat/webapps/bestpl-rest.war
WORKDIR /usr/local/tomcat 
CMD ["bin/catalina.sh", "run"]
